/**
 * @name 申领管理
 */
import request from '@/utils/request'

// 获取申领列表
export const getApplyList = data => {
  return request({
    url: '/h5/scriptApplication/getApplicationByStudioId',
    method: 'post',
    data
  })
}

 // 申领任务详情
 export const getTaskInfo = data => {
   return request({
     url: '/h5/scriptApplication/getListByReceiveIdInfo',
     method: 'post',
     data
   })
 }

// 申领通过
export const agreeApplication = data => {
  return request({
    url: '/h5/scriptApplication/agreeApplication',
    method: 'post',
    data
  })
}

// 申领拒绝
export const refuseApplication = data => {
  return request({
    url: '/h5/scriptApplication/refuseApplication',
    method: 'post',
    data
  })
}

// 发货
export const deliverGoods = data => {
  return request({
    url: '/h5/scriptApplication/deliverGoods',
    method: 'post',
    data
  })
}

// 确认收货
export const receiveGoods = data => {
  return request({
    url: '/h5/scriptApplication/receiveGoods',
    method: 'post',
    data
  })
}